import http from "@/api";

export const getRolesList = (params:any) => {
    return http.post<any>(`/system/getRoles`,params);
};

export const reqAddRoles = (params:any) => {
    return http.post<any>(`/system/addRoles`,params);
};

export const reqEditRoles = (params:any) => {
    return http.post<any>(`/system/editRoles`,params);
};

export const reqDelRoles = (params:any) => {
    return http.post<any>(`/system/delRoles`,params);
};

export const reqGetUser = (params:any) => {
    return http.post<any>(`/system/getUser`,params);
};

export const reqGetAllRoles = () => {
    return http.get<any>(`/system/allRoles`);
};

export const reqAddUser = (params:any) => {
    return http.post<any>(`/system/addUser`,params);
};

export const reqEditUser = (params:any) => {
    return http.post<any>(`/system/editUser`,params);
};

export const reqDelUser = (params:any) => {
    return http.post<any>(`/system/delUser`,params);
};

export const reqChangeUser = (params:any) => {
    return http.post<any>(`/system/changeUser`,params);
};

export const reqAddMenu = (params:any) => {
    return http.post<any>(`/system/addMenu`,params);
};


export const reqEditMenu = (params:any) => {
    return http.post<any>(`/system/editMenu`,params);
};

export const reqDelMenu = (params:any) => {
    return http.post<any>(`/system/delMenu`,params);
};